package com.test.designPattern.ch18;

/**
 * @ClassName User
 * @Description TODO
 * @Author 维康
 * @Date 2018/6/11 16:08
 * @Version 1.0
 **/
public class User {

    private String name;

    public User(String name){
        this.name  = name;
    }


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void sendMessage(String message){
        ChatRoom.showMessage(this,message);
    }
}
